﻿namespace Gantt.Server.Dto;

/// <summary>
/// 任务列表模型
/// </summary>
public class TasksInputDto
{
    /// <summary>
    /// 项目Id
    /// </summary>
    public long ProjectId { get; set; }
    /// <summary>
    /// 任务的唯一标识符
    /// </summary>
    public long id { get; set; }

    /// <summary>
    /// 任务的名称
    /// </summary>
    public string? label { get; set; }

    /// <summary>
    /// 任务分配给的用户
    /// </summary>
    public string? user { get; set; }

    /// <summary>
    /// 父任务的ID，如果是子任务的话
    /// </summary>
    public long? parentId { get; set; }

    /// <summary>
    /// 任务开始的时间
    /// </summary>
    public DateTime Start { get; set; }

    /// <summary>
    /// 任务结束的时间
    /// </summary>
    public DateTime End { get; set; }


    /// <summary>
    /// 任务完成的百分比（乘以100）
    /// </summary>
    public int? percent { get; set; }

    /// <summary>
    /// 类别ID
    /// </summary>
    public long typeId { get; set; }
 

    /// <summary>
    /// 紧前任务（依赖的任务ID）
    /// </summary>
    public long? dependentOns { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public long StatusId { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    public long LevelId { get; set; }
}
